package admin

import (
	"github.com/gogf/gf/v2/frame/g"
	"miaoyu/internal/model/admin"
)

type UserLevelIndexReq struct {
	g.Meta `method:"get" tags:"user"summary:""`
}
type UserLevelIndexRes struct {
}

type UserLevelAddReq struct {
	g.Meta `method:"get" tags:"user"`
}
type UserLevelAddRes struct {
}
type UserLevelEditReq struct {
	g.Meta `method:"get" tags:"user"`
	ResId  int64 `json:"resId"`
}
type UserLevelEditRes struct {
}

type UserLevelDelDoReq struct {
	g.Meta `method:"post" tags:"user"`
	ResId  int64 `json:"resId"`
}
type UserLevelDelDoRes struct {
}

type UserLevelListDoReq struct {
	g.Meta   `method:"get" tags:"user"`
	Keywords string `json:"keywords"` //关键词
	Page     int    `json:"page"`     //页码
	Limit    int    `json:"limit"`    //每页显示数
}
type UserLevelListDoRes struct {
	g.Meta `mime:"application/json"`
	Count  int                     `json:"count"`
	Data   []admin.UserLevelOutput `json:"data"`
}
type UserLevelSubmitDoReq struct {
	g.Meta   `method:"post" tags:"user"`
	ResId    int64  `json:"resId"       `                        //
	Title    string `json:"title" v:"required#职级名称不能为空"    `     // 职级名称
	CodeName string `json:"codeName" v:"required#名称编码不能为空"     ` // 职级名称
	Bak      string `json:"bak"      `                           // 备注
	OrderNum int    `json:"orderNum" `                           // 序号
}
type UserLevelSubmitDoRes struct {
}
